from django.db import models
from django.utils.translation import ugettext as _
from django.contrib.auth.models import User
# Create your models here.

class Post(models.Model):
    title = models.CharField(_("Title"), max_length=255, blank=False)
    body = models.TextField(_("Description of product"), default='', blank=True)
    created = models.DateTimeField(_(u"Created"), auto_now_add=True)
    user = models.ForeignKey(User, verbose_name=_(u"User"), blank=True, null=True)
    area = models.CharField(_("Where is push"), max_length=255, blank=False)
    def __unicode__(self):
        return self.title